package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zrr
 * @since 2022-12-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("plant")
public class Plant implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "plant_id", type = IdType.AUTO)
    private Long plantId;

    private String plantName;

    private Long categoryId;

    private String description;

    private String status;

    /**
     * 植物代表图片
     */
    private String avatar;

    private Long followerNum;

    private Long likeCount;

    /**
     * 植物年龄，按月计数
     */
    private Integer plantAge;

    private Long createBy;

    private String createTime;

    private Long updateBy;

    private String updateTime;

    /**
     * 0代表未删除，1代表已删除
     */
    private Integer delFlag;


}
